/*
 * bloglist.cpp
 *
 *  Created on: Jul 30, 2010
 *      Author: nintang
 */
#include "bloglist.h"

bloglist::bloglist(int i, QWidget *parent)
    : QWidget(parent)
{
	QWidget *widget=new QWidget(this);
	widget->resize(360,77);
	if(i%2==0)
		{widget->setStyleSheet("background-image:url(:/images/25.png); ");}
	else
		{widget->setStyleSheet("background-image:url(:/images/24.png); ");}
	QTextEdit *textEdit=new QTextEdit(widget);
	textEdit->setFocusPolicy(Qt::NoFocus);
	textEdit->setGeometry(QRect(5,5, 350, 40));
	textEdit->setMouseTracking(false);
	textEdit->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
    textEdit->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);	
    textEdit->setReadOnly(true);
    textEdit->setText("                    1234567890jaglllajjjjjjjjjjjjjjjjjjjjiiiiiiiiiiiiiiilllllllllllllllllllk");
    textEdit->setStyleSheet("color:black;font: bold 17px ; border:0px; background-color:transparent; selection-background-color: transparent;selection-color: black;");
	QLabel *labelName=new QLabel(QApplication::translate("bloglist", "\345\220\215\347\247\260\357\274\232", 0, QApplication::UnicodeUTF8),textEdit);
	labelName->setGeometry(QRect(5,2, 80, 25));
	labelName->setStyleSheet("color: rgb(4,49,35); font: bold 22px ;");
    QLineEdit *lineEditTime = new QLineEdit(widget);
    lineEditTime->setGeometry(QRect(5, 50, 120, 25));
    lineEditTime->setReadOnly(true);
    lineEditTime->setText("2010-7-28 15:30");
    lineEditTime->setStyleSheet("color: gray; font:bold 15px ;selection-background-color: transparent;selection-color: gray;");

}
bloglist::~bloglist()
{

}
